package com.ccz.demo.design.proxy.demo1.dynamic;

import com.ccz.demo.design.proxy.demo1.staticproxy.ILawSuit;

/**
 * @ClassName Test
 * @Author caihaoyun
 * @Date 2020/4/13
 * @Version V1.0
 **/
public class Test {
    public static void main(String[] args) {
        ILawSuit proxy = (ILawSuit) ProxyFactory.getDnyProxy(new CuiHuaNiu());
        proxy.submit("工资在此");
        proxy.defend();
    }
}
